﻿<%@ Page Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="default.aspx.cs"
    Inherits="chatblog._default" Title="博客管理-老友故事" %>

<%@ Register Assembly="RuleCode.Common" Namespace="RuleCode.Controls" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div style="width: 100%; height: 60px; border-bottom-color: Gray; border-bottom-width: 1px;
        border-bottom-style: solid; background-image: url(../images/mylogo.gif); background-position: left;
        background-repeat: no-repeat;">
    </div>
    <asp:Button ID="Button1" runat="server" Text="我的博客" OnClick="Button1_Click" />
    <asp:Button ID="Button2" runat="server" Text="管理我的博客" OnClick="Button2_Click" />
    <br />
    博客列表:
    <asp:GridView ID="GridView_bloglist" runat="server" Width="100%" AutoGenerateColumns="False"
        HeaderStyle-Height="26px" HeaderStyle-BorderWidth="0px" HeaderStyle-HorizontalAlign="Left"
        HeaderStyle-VerticalAlign="Middle">
        <Columns>
            <asp:TemplateField ItemStyle-BorderColor="#C1C1C1" ItemStyle-BorderStyle="Solid"
                ItemStyle-BorderWidth="1px">
                <ItemTemplate>
                    <a href='<%#ResolveUrl("~/blog/") +Eval("RECID")+".html"%>' target="_blank">&nbsp;<%#chatblog.zfunction.getnick( Eval("cbuserid").ToString())%></a>
                </ItemTemplate>
                <HeaderTemplate>
                    <div style="width: 100%; height: 26px; vertical-align: middle; background-image: url(../images/cat_bg.gif);
                        background-position: left; background-repeat: no-repeat; background-color: #FF9900;">
                        <span style="font-weight: normal; color: White;">&nbsp;&nbsp;&nbsp;用户</span></div>
                </HeaderTemplate>
            </asp:TemplateField>
            <asp:TemplateField ItemStyle-Width="200px">
                <ItemTemplate>
                    <a href='<%#ResolveUrl("~/blog/") +Eval("RECID")+".html"%>' target="_blank">&nbsp;<%#Eval("blogtitle")%></a>
                </ItemTemplate>
                <HeaderTemplate>
                    <div style="width: 100%; height: 26px; vertical-align: middle; background-color: #FF9900;">
                        <span style="font-weight: normal; color: White;">博客名称</span></div>
                    </div>
                </HeaderTemplate>
                <ItemStyle Width="200px"></ItemStyle>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <cc1:WebPager ID="WebPager_bloglist" runat="server" 
        ControlToPaginate="GridView_bloglist" 
        onpageindexchanged="WebPager_bloglist_PageIndexChanged" PageSize="30" />
</asp:Content>
